package cn.dancepeak.employee.domain;

import cn.dancepeak.role.domain.Role;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee {
    private Long id;
    private String username;
    private String phone;//电话
    private String email;
    private String salt;//盐值
    private String password;
    private Integer age;
    private Integer state;//员工状态 - 1启用，0禁用
    private Long logininfoId;//登录信息id

    //接收前端传递的角色ids
    private List<Long> roleIds;
    private List<Role> roles;

}
